package com.isky.visual.db.strategy;

import com.isky.visual.db.domain.DatabaseConfig;
import com.isky.visual.test.Strategy;
import com.isky.visual.util.DBUtil;

/**
 * @ClassName : Context
 * @Description : 适配类
 * @Author :wudl
 * @Date: 2020-04-13 00:03
 */

public class Context {
    private DbStrategy dbStrategy;

    public Context(DbStrategy dbStrategy){
        this.dbStrategy = dbStrategy;
    }
    public DBUtil operationDB(DatabaseConfig databaseConfig){
        return  dbStrategy.operationDB(databaseConfig);
    }
}
